import autoImport from 'unplugin-auto-import/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'

export default function createAutoImport() {
  return autoImport({
    imports: ['vue', 'vue-router', 'pinia'],
    resolvers: [NaiveUiResolver()],
    dts: 'src/auto-import.d.ts',
  })
}
